module.exports = (app) => {
  const { config } = app

  const { dict, constant } = config
  const { ORDER_STATE_AWAIT_PAY } = constant
  const { Schema, model, getModelName, formatDate } = app.jax.mongoose
  const modelName = getModelName(__filename)

  const schema = new Schema({
    orderId: Schema.Types.ObjectId, // 管理员ID
    qrcode: String, // 二维码图
  })

  const Model = model(modelName, schema)

  return Model
}
